package com.gjy.quartz.job;

import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author gjy
 * @version 1.0
 * @since 2024-11-29 11:10:01
 */
public class DownloadFileJob implements Job {

    private static final Logger log = LoggerFactory.getLogger(DownloadFileJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDetail jobDetail = context.getJobDetail();

        JobDataMap jobDataMap = jobDetail.getJobDataMap();
        String taskId = jobDataMap.getString("taskId");
        log.info("taskId: {}", taskId);
    }
}
